/**
 * Copyright (C) 2009 Michael A. MacDonald
 */
package com.iiordanov.android.bc;

import android.view.View;
import android.view.HapticFeedbackConstants;

/**
 * Implementation for SDK version >= 3
 * @author Michael A. MacDonald
 */
class BCHapticDefault implements IBCHaptic {

    /* (non-Javadoc)
     * @see com.iiordanov.android.bc.IBCHaptic#performLongPressHaptic(android.view.View)
     */
    @Override
    public boolean performLongPressHaptic(View v) {
        return v.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS,HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING|HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING
                );
    }

    /* (non-Javadoc)
     * @see com.iiordanov.android.bc.IBCHaptic#setIsHapticEnabled(android.view.View, boolean)
     */
/*
 *     @Override
    public boolean setIsHapticEnabled(View v, boolean enabled) {
        return v.setHapticFeedbackEnabled(hapticFeedbackEnabled)
    }
*/
}
